﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Collections;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x020013F3 RID: 5107
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class TrainPartyGamePassengerInfo : IMessage<TrainPartyGamePassengerInfo>, IMessage, IEquatable<TrainPartyGamePassengerInfo>, IDeepCloneable<TrainPartyGamePassengerInfo>, IBufferMessage
	{
		// Token: 0x17004067 RID: 16487
		// (get) Token: 0x0600E4B9 RID: 58553 RVA: 0x00263A14 File Offset: 0x00261C14
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<TrainPartyGamePassengerInfo> Parser
		{
			get
			{
				return TrainPartyGamePassengerInfo._parser;
			}
		}

		// Token: 0x17004068 RID: 16488
		// (get) Token: 0x0600E4BA RID: 58554 RVA: 0x00263A1B File Offset: 0x00261C1B
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return TrainPartyGamePassengerInfoReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x17004069 RID: 16489
		// (get) Token: 0x0600E4BB RID: 58555 RVA: 0x00263A2D File Offset: 0x00261C2D
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return TrainPartyGamePassengerInfo.Descriptor;
			}
		}

		// Token: 0x0600E4BC RID: 58556 RVA: 0x00263A34 File Offset: 0x00261C34
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public TrainPartyGamePassengerInfo()
		{
		}

		// Token: 0x0600E4BD RID: 58557 RVA: 0x00263A60 File Offset: 0x00261C60
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public TrainPartyGamePassengerInfo(TrainPartyGamePassengerInfo other) : this()
		{
			this.mtRankId_ = other.mtRankId_;
			this.passengerList_ = other.passengerList_.Clone();
			this.nAGKACACHGD_ = other.nAGKACACHGD_;
			this.curPassengerId_ = other.curPassengerId_;
			this.aetherSkillList_ = other.aetherSkillList_.Clone();
			this.passengerDiaryIdList_ = other.passengerDiaryIdList_.Clone();
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x0600E4BE RID: 58558 RVA: 0x00263ADB File Offset: 0x00261CDB
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public TrainPartyGamePassengerInfo Clone()
		{
			return new TrainPartyGamePassengerInfo(this);
		}

		// Token: 0x1700406A RID: 16490
		// (get) Token: 0x0600E4BF RID: 58559 RVA: 0x00263AE3 File Offset: 0x00261CE3
		// (set) Token: 0x0600E4C0 RID: 58560 RVA: 0x00263AEB File Offset: 0x00261CEB
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint MtRankId
		{
			get
			{
				return this.mtRankId_;
			}
			set
			{
				this.mtRankId_ = value;
			}
		}

		// Token: 0x1700406B RID: 16491
		// (get) Token: 0x0600E4C1 RID: 58561 RVA: 0x00263AF4 File Offset: 0x00261CF4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RepeatedField<TrainPartyGamePassenger> PassengerList
		{
			get
			{
				return this.passengerList_;
			}
		}

		// Token: 0x1700406C RID: 16492
		// (get) Token: 0x0600E4C2 RID: 58562 RVA: 0x00263AFC File Offset: 0x00261CFC
		// (set) Token: 0x0600E4C3 RID: 58563 RVA: 0x00263B04 File Offset: 0x00261D04
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint NAGKACACHGD
		{
			get
			{
				return this.nAGKACACHGD_;
			}
			set
			{
				this.nAGKACACHGD_ = value;
			}
		}

		// Token: 0x1700406D RID: 16493
		// (get) Token: 0x0600E4C4 RID: 58564 RVA: 0x00263B0D File Offset: 0x00261D0D
		// (set) Token: 0x0600E4C5 RID: 58565 RVA: 0x00263B15 File Offset: 0x00261D15
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint CurPassengerId
		{
			get
			{
				return this.curPassengerId_;
			}
			set
			{
				this.curPassengerId_ = value;
			}
		}

		// Token: 0x1700406E RID: 16494
		// (get) Token: 0x0600E4C6 RID: 58566 RVA: 0x00263B1E File Offset: 0x00261D1E
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RepeatedField<TrainPartyGameSkill> AetherSkillList
		{
			get
			{
				return this.aetherSkillList_;
			}
		}

		// Token: 0x1700406F RID: 16495
		// (get) Token: 0x0600E4C7 RID: 58567 RVA: 0x00263B26 File Offset: 0x00261D26
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RepeatedField<uint> PassengerDiaryIdList
		{
			get
			{
				return this.passengerDiaryIdList_;
			}
		}

		// Token: 0x0600E4C8 RID: 58568 RVA: 0x00263B2E File Offset: 0x00261D2E
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as TrainPartyGamePassengerInfo);
		}

		// Token: 0x0600E4C9 RID: 58569 RVA: 0x00263B3C File Offset: 0x00261D3C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(TrainPartyGamePassengerInfo other)
		{
			return other != null && (other == this || (this.MtRankId == other.MtRankId && this.passengerList_.Equals(other.passengerList_) && this.NAGKACACHGD == other.NAGKACACHGD && this.CurPassengerId == other.CurPassengerId && this.aetherSkillList_.Equals(other.aetherSkillList_) && this.passengerDiaryIdList_.Equals(other.passengerDiaryIdList_) && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x0600E4CA RID: 58570 RVA: 0x00263BD4 File Offset: 0x00261DD4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			if (this.MtRankId != 0U)
			{
				num ^= this.MtRankId.GetHashCode();
			}
			num ^= this.passengerList_.GetHashCode();
			if (this.NAGKACACHGD != 0U)
			{
				num ^= this.NAGKACACHGD.GetHashCode();
			}
			if (this.CurPassengerId != 0U)
			{
				num ^= this.CurPassengerId.GetHashCode();
			}
			num ^= this.aetherSkillList_.GetHashCode();
			num ^= this.passengerDiaryIdList_.GetHashCode();
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x0600E4CB RID: 58571 RVA: 0x00263C6F File Offset: 0x00261E6F
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x0600E4CC RID: 58572 RVA: 0x00263C77 File Offset: 0x00261E77
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x0600E4CD RID: 58573 RVA: 0x00263C80 File Offset: 0x00261E80
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.NAGKACACHGD != 0U)
			{
				output.WriteRawTag(24);
				output.WriteUInt32(this.NAGKACACHGD);
			}
			if (this.CurPassengerId != 0U)
			{
				output.WriteRawTag(40);
				output.WriteUInt32(this.CurPassengerId);
			}
			this.passengerDiaryIdList_.WriteTo(ref output, TrainPartyGamePassengerInfo._repeated_passengerDiaryIdList_codec);
			this.aetherSkillList_.WriteTo(ref output, TrainPartyGamePassengerInfo._repeated_aetherSkillList_codec);
			this.passengerList_.WriteTo(ref output, TrainPartyGamePassengerInfo._repeated_passengerList_codec);
			if (this.MtRankId != 0U)
			{
				output.WriteRawTag(120);
				output.WriteUInt32(this.MtRankId);
			}
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x0600E4CE RID: 58574 RVA: 0x00263D28 File Offset: 0x00261F28
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			if (this.MtRankId != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.MtRankId);
			}
			num += this.passengerList_.CalculateSize(TrainPartyGamePassengerInfo._repeated_passengerList_codec);
			if (this.NAGKACACHGD != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.NAGKACACHGD);
			}
			if (this.CurPassengerId != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.CurPassengerId);
			}
			num += this.aetherSkillList_.CalculateSize(TrainPartyGamePassengerInfo._repeated_aetherSkillList_codec);
			num += this.passengerDiaryIdList_.CalculateSize(TrainPartyGamePassengerInfo._repeated_passengerDiaryIdList_codec);
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x0600E4CF RID: 58575 RVA: 0x00263DD0 File Offset: 0x00261FD0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(TrainPartyGamePassengerInfo other)
		{
			if (other == null)
			{
				return;
			}
			if (other.MtRankId != 0U)
			{
				this.MtRankId = other.MtRankId;
			}
			this.passengerList_.Add(other.passengerList_);
			if (other.NAGKACACHGD != 0U)
			{
				this.NAGKACACHGD = other.NAGKACACHGD;
			}
			if (other.CurPassengerId != 0U)
			{
				this.CurPassengerId = other.CurPassengerId;
			}
			this.aetherSkillList_.Add(other.aetherSkillList_);
			this.passengerDiaryIdList_.Add(other.passengerDiaryIdList_);
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x0600E4D0 RID: 58576 RVA: 0x00263E67 File Offset: 0x00262067
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x0600E4D1 RID: 58577 RVA: 0x00263E70 File Offset: 0x00262070
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num <= 56U)
				{
					if (num == 24U)
					{
						this.NAGKACACHGD = input.ReadUInt32();
						continue;
					}
					if (num == 40U)
					{
						this.CurPassengerId = input.ReadUInt32();
						continue;
					}
					if (num == 56U)
					{
						goto IL_66;
					}
				}
				else if (num <= 66U)
				{
					if (num == 58U)
					{
						goto IL_66;
					}
					if (num == 66U)
					{
						this.aetherSkillList_.AddEntriesFrom(ref input, TrainPartyGamePassengerInfo._repeated_aetherSkillList_codec);
						continue;
					}
				}
				else
				{
					if (num == 114U)
					{
						this.passengerList_.AddEntriesFrom(ref input, TrainPartyGamePassengerInfo._repeated_passengerList_codec);
						continue;
					}
					if (num == 120U)
					{
						this.MtRankId = input.ReadUInt32();
						continue;
					}
				}
				this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
				continue;
				IL_66:
				this.passengerDiaryIdList_.AddEntriesFrom(ref input, TrainPartyGamePassengerInfo._repeated_passengerDiaryIdList_codec);
			}
		}

		// Token: 0x04005A7F RID: 23167
		private static readonly MessageParser<TrainPartyGamePassengerInfo> _parser = new MessageParser<TrainPartyGamePassengerInfo>(() => new TrainPartyGamePassengerInfo());

		// Token: 0x04005A80 RID: 23168
		private UnknownFieldSet _unknownFields;

		// Token: 0x04005A81 RID: 23169
		public const int MtRankIdFieldNumber = 15;

		// Token: 0x04005A82 RID: 23170
		private uint mtRankId_;

		// Token: 0x04005A83 RID: 23171
		public const int PassengerListFieldNumber = 14;

		// Token: 0x04005A84 RID: 23172
		private static readonly FieldCodec<TrainPartyGamePassenger> _repeated_passengerList_codec = FieldCodec.ForMessage<TrainPartyGamePassenger>(114U, TrainPartyGamePassenger.Parser);

		// Token: 0x04005A85 RID: 23173
		private readonly RepeatedField<TrainPartyGamePassenger> passengerList_ = new RepeatedField<TrainPartyGamePassenger>();

		// Token: 0x04005A86 RID: 23174
		public const int NAGKACACHGDFieldNumber = 3;

		// Token: 0x04005A87 RID: 23175
		private uint nAGKACACHGD_;

		// Token: 0x04005A88 RID: 23176
		public const int CurPassengerIdFieldNumber = 5;

		// Token: 0x04005A89 RID: 23177
		private uint curPassengerId_;

		// Token: 0x04005A8A RID: 23178
		public const int AetherSkillListFieldNumber = 8;

		// Token: 0x04005A8B RID: 23179
		private static readonly FieldCodec<TrainPartyGameSkill> _repeated_aetherSkillList_codec = FieldCodec.ForMessage<TrainPartyGameSkill>(66U, TrainPartyGameSkill.Parser);

		// Token: 0x04005A8C RID: 23180
		private readonly RepeatedField<TrainPartyGameSkill> aetherSkillList_ = new RepeatedField<TrainPartyGameSkill>();

		// Token: 0x04005A8D RID: 23181
		public const int PassengerDiaryIdListFieldNumber = 7;

		// Token: 0x04005A8E RID: 23182
		private static readonly FieldCodec<uint> _repeated_passengerDiaryIdList_codec = FieldCodec.ForUInt32(58U);

		// Token: 0x04005A8F RID: 23183
		private readonly RepeatedField<uint> passengerDiaryIdList_ = new RepeatedField<uint>();
	}
}
